package thread;

import java.util.concurrent.Callable;
import java.util.concurrent.FutureTask;

public class Thread3 implements Callable {
  @Override
  public Integer call() throws Exception {
    System.out.println("callable");
    return 1;
  }

  public static void main(String[] args) {
    Thread3 thread3 = new Thread3();
    FutureTask futureTask = new FutureTask<>(thread3);
    new Thread(futureTask,"lucy").start();
  }
}
